<?php 
class DomSiteController extends DomController {

	public function index() {}
	
	public function codingStandard() {
		$source = file_get_contents(DOM_TEMPLATES_DIR . 'Site/DomSite/codingStandard-source.html');
		
		$view = new DomView( 'DomSite/codingStandard.html');
		$view->contents = $source;
		$panel = array(
			'title' => 'Coding standard',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function urls() {
		$view = new DomView( 'DomSite/urls.html');
		$panel = array(
			'title' => 'Url-s',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function siteSetup() {
		$view = new DomView( 'DomSite/site.html');
		$panel = array(
			'title' => 'Site',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function controllers() {
		$view = new DomView( 'DomSite/controllers.html');
		$panel = array(
			'title' => 'Controllers',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function settingUp() {
		$view = new DomView( 'DomSite/newSite.html');
		$panel = array(
			'title' => 'Setting up new site',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function settingUpSubSite() {
		$view = new DomView( 'DomSite/newSubSite.html');
		$panel = array(
			'title' => 'Setting up new sub site site',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function templates() {
		$view = new DomView( 'DomSite/templates.html');
		$panel = array(
			'title' => 'Setting up new sub site site',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
	}
	
	public function languages() {
		$view = new DomView( 'DomSite/languages.html');
		$panel = array(
			'title' => 'Setting up languages',
			'bodyStyle' => 'padding:15px; line-height:1.8;',
			'html' => $view->fetch(),
		);
		$this->view->contents = DomFg::render( $panel );
		
	}

	public function setup() {
		$this->loadController('Index')->setup();
		$indexPanel = array(
			'title' => 'Index',
			'html' => '<div id="autoindex"></div>',
		);
		$this->view->index = DomFg::render( $indexPanel );
	}
	
	public function error404() {
		$this->loadController('Index')->error404();
	}
}
?>